package com.example.properties.bean;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class Book {

    //书名
    private String name;
    //价格
    private  int price;

    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
